﻿namespace Framework.Core.Domain
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="IServiceT"></typeparam>
    public class ServiceFactory<IServiceT>
    {
        private ServiceFactory()
        {

        }

        public static IServiceT GetService()
        {
            //通过IServiceT的类型和配置文件来得到得到具体的实现
            return (IServiceT)ObjectFactory.GetObject(typeof(IServiceT).Name);
        }
    }
}
